package com.gobo.jinghuimall.auth.feign;

import com.gobo.common.utils.R;
import com.gobo.jinghuimall.auth.vo.UserLoginVo;
import com.gobo.jinghuimall.auth.vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author guanboStart
 * @date 2021/11/20 22:38
 */
@FeignClient("jinghuimall-member")
public interface MemberFegin {

    @PostMapping(value = "/member/member/register")
    R register(@RequestBody UserRegisterVo vo);


    @PostMapping(value = "/member/member/login")
    R login(@RequestBody UserLoginVo vo);

//    @PostMapping(value = "/member/member/oauth2/login")
//    R oauthLogin(@RequestBody SocialUser socialUser) throws Exception;
//
//    @PostMapping(value = "/member/member/weixin/login")
//    R weixinLogin(@RequestParam("accessTokenInfo") String accessTokenInfo);
}
